module("TableTool", package.seeall)



TableTool = {}

 
--拆分字符串 "123"    ->   {"1","2","3"}
function TableTool:split_string(inputstr, sep)
    if sep == nil then
        sep = "%s"
    end
    local t={}
    for str in string.gmatch(inputstr,  "[%z\1-\127\194-\244][\128-\191]*") do
        table.insert(t, str)
    end
    return t
end

